﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Site2.Master" AutoEventWireup="true"
    CodeBehind="ForgetPassword.aspx.cs" Inherits="TrainingsApp.IPADApp.ForgetPassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        body
        {
            background-image: url(img/regbg.jpg);
            background-repeat: repeat;
        }
    </style>
    <script type="text/javascript" src="scripts/formValidator-4.0.1.min.js"> </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="padding" style="background-color: #275038;">
        <table border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td valign="top" width="25px;">
                    <img src="img/z1.png" width="25" height="34" alt="" title="" />
                </td>
                <td class="ztop">
                </td>
                <td valign="top" width="27px;">
                    <img src="img/z6.png" width="37" height="34" />
                </td>
            </tr>
            <tr>
                <td valign="top" class="zmiddle">
                    &nbsp;
                </td>
                <td valign="top">
                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
                        <tr>
                            <td align="center">
                                <img src="img/img1.png" width="240" height="329" alt="" title="" />
                            </td>
                            <td width="60%">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td width="38px;" align="right">
                                            <img src="img/zuo.png" width="38" height="44" />
                                        </td>
                                        <td valign="top" class="remiddle">
                                            &nbsp;
                                        </td>
                                        <td width="36px;">
                                            <img src="img/you.png" width="36" height="44" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td valign="top" class=" retext">
                                            <div style="color: #239ee2; font-size: 16px; padding-bottom: 15px;">
                                                你可以通过与你账号绑定的邮箱来找回密码。</div>
                                            <table border="0" cellspacing="10" cellpadding="0" width="100%">
                                                <tr>
                                                    <td class="lvse" align="right" width="32%" valign="top">
                                                        帐 号 名 称：
                                                    </td>
                                                    <td valign="top">
                                                        <asp:TextBox ID="txtUserName" ClientIDMode="Static" runat="server" CssClass="refield"
                                                            MaxLength="20"></asp:TextBox>
                                                        <div id="txtUserNameTip">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="lvse" align="right" width="32%" valign="top">
                                                        帐 号 邮 箱：
                                                    </td>
                                                    <td valign="top">
                                                        <asp:TextBox ID="txtEmail" ClientIDMode="Static" runat="server" CssClass="refield"
                                                            MaxLength="20"></asp:TextBox>   <div id="txtEmailTip">
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                                <tr>
                                                    <td width="33%">
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="btnSubmit" OnClick="btnSubmit_Click" ClientIDMode="Static" runat="server"
                                                            Text="找回密码" CssClass="rebt" />
                                                    </td>
                                                    <td width="33%">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                            </table>
                                            <div class="repas">
                                                成长足迹承诺不向其他任何第三方泄露您的个人信息</div>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top" width="15px;" align="right">
                                            <img src="img/1.png" width="15" height="15" />
                                        </td>
                                        <td valign="top" class="rmid">
                                            &nbsp;
                                        </td>
                                        <td valign="top">
                                            <img src="img/3.png" width="13" height="15" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top" class="zmid">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <img src="img/z3.png" width="25" height="45" alt="" title="" />
                </td>
                <td class="zbot">
                    &nbsp;
                </td>
                <td valign="top">
                    <img src="img/z4.png" width="37" height="45" />
                </td>
            </tr>
        </table>
    </div>
    <script type="text/javascript">

        jQuery(function () {


            $.formValidator.initConfig({ submitButtonID: "btnSubmit", autoTip: true, debug: false, onSuccess: function () { return true; }, onError: function () { } });
            jQuery("#txtUserName").formValidator({ onShow: "", onFocus: "", onCorrect: "&nbsp;" }).inputValidator({ min: 4, onError: "登录帐号不能为空" })
                .regexValidator({ regExp: "^([1-9a-zA-Z_]){4,20}$", onError: "4-20位，可由数字、字母和&quot;_&quot;组 成 " })
                .ajaxValidator({
                    dataType: "json",
                    async: true,
                    data: { cmd: 2000, st: Math.random(), rn: "<%=this.txtUserName.UniqueID %>" },
                    url: "/ajax/AjaxGet.ashx",
                    success: function (data) {
                        if (data == 200) return true;
                        return false;
                    },
                    error: function (jqXHR, textStatus, errorThrown) { alert("服务器没有返回数据，可能服务器忙，请重试" + errorThrown); },
                    onError: "该帐号不存在,",
                    onWait: ""
                });

            jQuery("#txtEmail").formValidator({ onShow: "", onFocus: "", onCorrect: "&nbsp;" }).inputValidator({ min: 1, onError: "请输入邮箱" })
                .regexValidator({ regExp: "^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$", onError: "你输入的邮箱格式不正确" })
                 .ajaxValidator({
                     dataType: "json",
                     async: true,
                     data: { cmd: 2005, st: Math.random(), rn: "<%=this.txtUserName.UniqueID %>", en: "<%=this.txtEmail.UniqueID %>" },
                     url: "/ajax/AjaxGet.ashx",
                     success: function (data) {
                         if (data == 200) return true;
                         return false;
                     },
                     error: function (jqXHR, textStatus, errorThrown) { alert("服务器没有返回数据，可能服务器忙，请重试" + errorThrown); },
                     onError: "提供的邮箱和帐号不匹配,",
                     onWait: ""
                 });
        });

    </script>
</asp:Content>
